package com.company.jd;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()){
            double n = sc.nextDouble();
            int m = sc.nextInt();
            double res = 0.0;
            double c = n;
            for (int i = 0;i< m;i++){
                res = res + n;
                n = Math.sqrt(n);
            }
            System.out.printf("%.2f",res);
            System.out.println();
        }
    }
}
